package com.qf.game;

/**
 * 法师类
 */
public class Master extends Hero {
    //法师的智力属性
    private int wisdom;
    private  Magic assisMagic;
    //辅助技能

    public Magic getAssisMagic() {
        return assisMagic;
    }

    public void setAssisMagic(Magic assisMagic) {
        this.assisMagic = assisMagic;
    }

    public int getWisdom() {
        return wisdom;
    }

    public void setWisdom(int wisdom) {
        this.wisdom = wisdom;
    }

    private Magic magic;
    public Magic getMagic() {
        return magic;
    }

    public void setMagic(Magic magic) {
        this.magic = magic;
    }


    public void magicAttack(){
        int magicDamage = magic.dealmagicDamage(this);
        System.out.println(magic.getName()+"等级"+magic.getGrade()+","+"造成的伤害为："+magic.magicDamage());
    }
    public void useAssistMagic(){
        assisMagic.dealmagicDamage(this);
        System.out.println(magic.getName()+"辅助技能"+",技能：力量+"+getPower()+",智力+"+getWisdom());
    }
}
